CC = cc
CFLAGS = -Wall -c -I/Library/Frameworks/SDL2.framework/Headers
LDFLAGS = -F/Library/Frameworks -framework SDL2
SOURCES = main.c misc.c ship.c sprite.c map.c view.c anim.c direction.c control.c
OBJECTS = $(SOURCES:.c=.o)

all:	game

game:	$(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.c.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -f *.o game
